﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections.Generic;
using SocialPhotos.Models;
using SocialPhotos.Models.SqlExpressRepository;
using SocialPhotos.Widgets.LeftMenu;

namespace SocialPhotos.Controllers
{
    public abstract class ControllerBase : Controller
    {
        public void Initialize(BaseViewModel baseViewModel, int? categoryId)
        {
            ILeftMenuWidgetController leftMenuController = new LeftMenuWidgetController();
            baseViewModel.LeftMenuViewModel = leftMenuController.GetViewModel(categoryId);
        }
    }
}